package gui;

import java.awt.image.BufferedImage;
import java.io.*;
import java.net.URL;

import javax.imageio.ImageIO;
import javax.swing.JFrame;

public class TestMain {

	static URL path = TestMain.class.getClassLoader().getResource("");

	public static final String imgDir = "/Images/";

	public static void main(String[] args) throws IOException {

		// File pic = new File(imgDir + "background.jpg");
		// System.out.println(pic.getAbsolutePath());

		URL imageURL = TestMain.class.getResource(imgDir + "background.jpg");
		BufferedImage image = ImageIO.read(imageURL);

		ControlPanel cpanel = new ControlPanel(image);
		JFrame f = new JFrame();
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		f.getContentPane().add(cpanel);
		f.setSize(732, 518);
		f.setLocation(150, 50);
		f.setVisible(true);
	}
}
